package com.baizhi.cmfz.service.impl;

import com.baizhi.cmfz.dao.AudioDao;
import com.baizhi.cmfz.entity.Audio;
import com.baizhi.cmfz.service.AudioService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
public class AudioServiceImpl implements AudioService {
    @Autowired(required = false)
    private AudioDao audioDao;
    @Override
    @Transactional
    public List<Audio> selectAudioByAlbumId(int albumId) {
        return audioDao.selectAudioByAlbumId(albumId);
    }
}
